package com.zlz.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlz.server.pojo.Admin;
import com.zlz.server.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author efire
 * @since 2021-01-16
 */
public interface AdminMapper extends BaseMapper<Admin> {
    /**
     * 获取所有操作员
     *
     * @param keywords 搜索关键词
     * @param currentAdminId 当前操作者id
     * @return 查询到的操作员集合
     */
    List<Admin> getAllAdmins(@Param("id") Long currentAdminId, @Param("keywords") String keywords);
}
